import request from '@/utils/request'

// 查询物料库存列表
export function listMtrstock(query) {
  return request({
    url: '/mes/mtrstock/list',
    method: 'get',
    params: query
  })
}

// 查询物料库存详细
export function getMtrstock(id) {
  return request({
    url: '/mes/mtrstock/' + id,
    method: 'get'
  })
}

// 新增物料库存
export function addMtrstock(data) {
  return request({
    url: '/mes/mtrstock',
    method: 'post',
    data: data
  })
}

// 修改物料库存
export function updateMtrstock(data) {
  return request({
    url: '/mes/mtrstock',
    method: 'put',
    data: data
  })
}

// 删除物料库存
export function delMtrstock(id) {
  return request({
    url: '/mes/mtrstock/' + id,
    method: 'delete'
  })
}
